package com.dingding.gmall.product.feign;

import com.dingding.gmall.common.dto.es.SkuHasStockDTO;
import com.dingding.gmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author liudingding
 * @ClassName WareFeignService
 * @description
 *         远程仓库服务
 * @date 2021/2/24 10:01 下午
 */

@FeignClient("gmall-ware")
public interface WareFeignService {

    //查看是否有库存
    @PostMapping("/ware/waresku/hasStock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);
}
